package com.xinziruo.richclient.support.command;


/**
 * 
 * @author loudyn
 * 
 */
public interface CommandConverter<T> {

	/**
	 * 
	 * @param obj
	 * @return
	 */
	Command toCommand(T obj) throws Exception;

	/**
	 * 
	 * @param comm
	 * @return
	 */
	T fromCommand(Command comm) throws Exception;
}
